home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.tip.net!dataphone!newsmaster
- From: skorpio@dataphone.se (Jarmo Paavilainen)
- Newsgroups: comp.lang.c,comp.std.c,finet.atk.kielet.c
- Subject: TYPEDEF and Watcom C++ 10.5
- Date: 31 Mar 1996 12:32:59 GMT
- Organization: Dataphone Communication Networks
- Distribution: world
- Message-ID: <4jlu1r$cs7@nic.dataphone.se>
- Reply-To: skorpio@dataphone.se
- NNTP-Posting-Host: nikson.dataphone.se
- X-Newsreader: NeoLogic News for OS/2 [version: 4.5 YO Beta]
-
-
- typedef struct
- {
- WORD CheckSum;
- WORD Version;
- BYTE PatchLevel;
- BYTE Name[21];
- WORD MarkerVersion;
- }VERSION_TAG_STRUCT;
-
- Shouldn't sizeof(VERSION_TAG_STRUCT) always result in 28. By other words
- shouldn't WORD always be 16 bits and BYTE 8 bits.
-
- If so why does my compiler claim that sizeof(VERSION_TAG_STRUCT) == 34.
- All this in 32 bit OS/2 PM and Watcom C++ 10.5
-
- Take care,
- Skorpio
- _________________________________________________________________________
- Jarmo Paavilainen, Skorpio skorpio@dataphone.se
- Sweden http://www.dataphone.se/~skorpio
-
-